
<!doctype html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<html  lang="en">

    <head>
        <!-- meta data -->
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->

        <!--font-family-->
		<link href="https://fonts.googleapis.com/css?family=Poppins:100,200,300,400,500,600,700,800,900&amp;subset=devanagari,latin-ext" rel="stylesheet">
        
        <!-- title of site -->
        <title>Sign up</title>

        <!-- For favicon png -->
		<link rel="shortcut icon" type="image/icon" th:href="@{assets/logo/favicon.png}"/>
       
        <!--font-awesome.min.css-->
        <link rel="stylesheet" th:href="@{assets/css/font-awesome.min.css}">
		
		<!--animate.css-->
        <link rel="stylesheet" th:href="@{assets/css/animate.css}">
		
        <!--bootstrap.min.css-->
        <link rel="stylesheet" th:href="@{assets/css/bootstrap.min.css}">
		
		<!-- bootsnav -->
		<link rel="stylesheet" th:href="@{assets/css/bootsnav.css}" >
        
        <!--style.css-->
        <link rel="stylesheet" th:href="@{assets/css/style.css}">
        
        <!--responsive.css-->
        <link rel="stylesheet" th:href="@{assets/css/responsive.css}">
        
        <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
        <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
		
        <!--[if lt IE 9]>
			<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
			<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
        <![endif]-->
    </head>
	
	<body>
		<!--[if lte IE 9]>
            <p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience and security.</p>
        <![endif]-->
		
		<section class="signin signup">
			<div class="container">

				<div class="sign-content">
					<h2>注册</h2>
					
					<div class="row">
						<div class="col-sm-12">
							<div class="signin-form">
								<form id="addForm" action="/paddyi-sso/ssoUser/register">
									<div class="form-col">
										<div class="form-group">
										    <label >姓名</label>
										    <input type="text" class="form-control"  name="name" placeholder="姓名">
										</div><!--/.form-group -->
									</div><!--/.form-col -->

									<div class="form-group">
										<label >邮箱</label>
									    <input type="email" class="form-control"  name="email" placeholder="请输入正确邮箱">
									</div><!--/.form-group -->
									<div class="form-group">
										<label >密码</label>
									    <input type="password" class="form-control"  name="password" placeholder="密码">
									</div><!--/.form-group -->
									<div class="form-group">
										<label >确认密码</label>
									    <input type="password" class="form-control"  placeholder="确认密码">
									</div><!--/.form-group -->
								</form><!--/form -->
							</div><!--/.signin-form -->
						</div><!--/.col -->
					</div><!--/.row -->
					
					<div class="row">
						<div class="col-sm-12">
							<div class="signin-password">
								<div class="awesome-checkbox-list">
									<ul class="unstyled centered">

										<li>
										    <input class="styled-checkbox" id="styled-checkbox-2" type="checkbox" value="value2">
										    <label for="styled-checkbox-2">接受注册协议</label>
										</li>

										<li></li>
									</ul>
								</div><!--/.awesome-checkbox-list -->
							</div><!--/.signin-password -->
						</div><!--/.col -->
					</div><!--/.row -->


					<div class="row">
						<div class="col-sm-12">
							<div class="signin-footer">
								<button type="button" class="btn signin_btn" data-toggle="modal" data-target=".signin_modal">
								注册							</button>
								<p>
									已经是会员 ?
									<a href="signin">登录</a>								</p>
							</div><!--/.signin-footer -->
						</div><!--/.col-->
					</div><!--/.row -->
				</div><!--/.sign-content -->
			</div>
		<!--footer copyright start -->
		<footer class="footer-copyright">
			<div id="scroll-Top">
				<i class="fa fa-angle-double-up return-to-top" data-toggle="tooltip" data-placement="top" title="" data-original-title="Back to Top" aria-hidden="true"></i>			</div><!--/.scroll-Top-->
		</footer><!--/.hm-footer-copyright-->
		<!--footer copyright  end -->
		</section>
	</body>

		 <!-- Include all js compiled plugins (below), or include individual files as needed -->

		<script th:src="@{assets/js/jquery.js}"></script>
        
        <!--modernizr.min.js-->
        <script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script>
		
		<!--bootstrap.min.js-->
        <script th:src="@{assets/js/bootstrap.min.js}"></script>
		
		<!-- bootsnav js -->
		<script th:src="@{assets/js/bootsnav.js}"></script>
		
		<!-- jquery.sticky.js -->
		<script th:src="@{assets/js/jquery.sticky.js}"></script>
		<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.4.1/jquery.easing.min.js"></script>
		
        
        <!--Custom JS-->
        <script src="@{assets/js/custom.js}"></script>

	<script type="text/javascript">
        $('.signin_btn').on('click',function(){
            var targetUrl = $("#addForm").attr("action");
            var data = $("#addForm").serialize();
            $.ajax({
                type:'post',
                url:targetUrl,
                cache: false,
                // data:{name:'paddy',password:'paddy'},
				data:data,
                dataType:'json',
                success:function(data){
                    window.localStorage.setItem('msg',data.msg);
                    alert(window.localStorage.getItem("msg"));
                    window.parent.location.href='http://www.paddyi.com';
                },
                error:function(){
                    alert("请求失败")
                }
            })
        })
	</script>
</html>